package learn.contorlller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description:
 * @Author yxc
 * @Date 2022/1/7
 */
@Controller
public class ViewTestController {


    @GetMapping("/testTemplate")
    public String atguigu(Model model) {
        // model中的数据会被放在请求域中
        model.addAttribute("link", "www.baidu.com");
        model.addAttribute("msg", "你好，靓仔");
        return "success2";
    }
}
